<template>
  <div id="postDetail">
    <div class="send-pad">
      <h2>{{ announce.title }}</h2>
    </div>

    <div class="reply-content">
      <div class="content-item">
        <div class="left">
          <div class="user-no"></div>
          <div class="user-info">
            <img
              :src="'http://localhost:8080/forum/upload/' + announce.avatar"
              alt=""
            />
            <p>{{ announce.nickname }}</p>
          </div>
        </div>
        <div class="right">
          <div class="send-time">
            <font
              style="
                font-size: 20px;
                line-height: 30px;
                color: #6699cc;
                font-weight: bolder;
                margin-left: 15px;
              "
              >管理员</font
            >
            发表于 {{ announce.publishTime }}
          </div>

          <div class="content-detail">
            <p>
              {{ announce.content }}
            </p>
          </div>
          <div class="content-foot">
            <span id="likesNum">
              <img
                v-if="!likeIcon"
                class="icon"
                src="../assets/images/not_like.png"
              />
              <img
                v-if="likeIcon"
                class="icon"
                src="../assets/images/like.png"
              />
              <p>
                {{ announce.likes }}
              </p>
            </span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  computed: {},
  data() {
    return {
      likeIcon: false,
      collectIcon: false,
      announce: JSON.parse(this.$route.query.data),
    };
  },
  methods: {},
  mounted() {},
};
</script>


<style lang="less" scoped>
.editor-container {
  border: 1px solid #dadada;
  border-radius: 5px;
  overflow: hidden;
  .toolbar {
    height: 35px;
    border-bottom: 1px solid #ccc;
    /deep/ .w-e-menu {
      padding: 0 10px;
    }
  }
  .editor {
    height: 250px;
    /deep/ .w-e-text {
      overflow-y: auto;
    }
  }
}
.icon {
  width: 24px;
  cursor: pointer;
  vertical-align: middle;
}
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#postDetail {
  padding: 0 16px;
}

.send-pad {
  display: flex;
  margin: 15px 0;
  align-items: center;
}

.reply-content .post-title {
  background-color: #e5edf2;
  height: 42px;
  line-height: 36px;
  font-size: 14px;
  border-bottom: 6px solid #c2d5e3;
}

.reply-content .post-title .left {
  width: 200px;
  float: left;
}

ul {
  padding-left: 0;
  list-style: none;
}

.content-item {
  border-bottom: 6px solid #c2d5e3;
}

.content-item .left {
  width: 200px;
  background-color: #e5edf2;
  padding-bottom: 6px;
  float: left;
}

.content-item .left .user-no {
  height: 36px;
  line-height: 36px;
  border-bottom: 1px #ccc dashed;
  background-color: #fff;
  padding-left: 16px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.content-item .left .user-info {
  text-align: center;
  padding-top: 16px;
}

.content-item .left .user-info img {
  border: 6px #fff solid;
  width: 132px;
  height: 132px;
}

.content-item .left .user-info p {
  text-align-last: left;
  padding-left: 34px;
  font-size: 14px;
}

.content-item .right {
  min-height: 282px;
  min-height: 252px;
  background-color: #fff;
  font-size: 14px;
  overflow: hidden;
  padding: 0 6px;
}

.content-item .right .send-time {
  height: 36px;
  line-height: 36px;
  border-bottom: 1px dashed #ccc;
  text-align: right;
  padding: 5px 10px;
}

.content-item .right .content-detail {
  text-align: left;
  min-height: 180px;
  padding: 10px;
}

.content-item .right .content-detail p {
  margin: 0;
  line-height: 20px;
  letter-spacing: 1px;
}

.content-item .right .content-foot {
  height: 36px;
  line-height: 36px;
  border-top: 1px dashed #ccc;
  text-align: right;
}

.content-item .right .content-foot span {
  margin-right: 16px;
}

.content-item .right .content-foot span p {
  margin: 0;
  display: inline;
  cursor: pointer;
  vertical-align: middle;
}
</style>